hypnagogic image

noun
1.
(psychol) an image experienced by a person just before falling asleep, which often resembles a hallucination